package com.shop.cloud.model.response;

import java.sql.Timestamp;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.shop.cloud.model.response.RestfulResponse;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */

@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class GetSysResourceListResponse {
	
	@JsonProperty("childs")
    @ApiModelProperty(value = "childs", example = "", required = true)
    private List<GetSysResourceListResponse> childs;
    
    @JsonProperty("id")
    @ApiModelProperty(value = "菜单资源id", example = "", required = true)
    private Long id;

    @JsonProperty("name")
    @ApiModelProperty(value = "菜单资源名称", example = "", required = true)
    private String name;
    
    @JsonProperty("isAssigned")
    @ApiModelProperty(value = "角色职位是否拥有此菜单资源。0否，1是。", example = "", required = true)
    private int isAssigned;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<GetSysResourceListResponse> getChilds() {
		return childs;
	}

	public void setChilds(List<GetSysResourceListResponse> childs) {
		this.childs = childs;
	}

	public int getIsAssigned() {
		return isAssigned;
	}

	public void setIsAssigned(int isAssigned) {
		this.isAssigned = isAssigned;
	}

}
